import { ApiProperty } from '@nestjs/swagger';
import { IsEnum, IsOptional, IsString } from 'class-validator';
import { FeedbackStatus } from '../feedback.entity';

export class UpdateFeedbackStatusDto {
  @ApiProperty({ description: '反馈状态', enum: FeedbackStatus })
  @IsEnum(FeedbackStatus)
  status: FeedbackStatus;

  @ApiProperty({ description: '回复内容', required: false })
  @IsOptional()
  @IsString()
  replyContent?: string;

  @ApiProperty({ description: '处理人ID', required: false })
  @IsOptional()
  handlerId?: number;
}